package com.xframe.domain.knowledgeBase;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XBelongsTo;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;


// com.xframe.domain.knowledgeBase.VReplyEmployee
@Data
@Accessors(chain=true)
@XTable(value = "v_reply_employee", label = "知识评论及员工视图")
public class VReplyEmployee extends BaseModel {
    /**
     * 主键ID
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(primaryKeyFlag = true,desc = "主键ID",nullFlag = true)
    private Long replyId;


    /**
     * 评论ID
     */
    @XColumn(name = "comment_id",desc = "评论ID")
    private Long commentId;

    /**
     * 被回复员工ID
     */
    @XColumn(name = "emp_id",desc = "被回复员工ID")
    private Long empId;

    /**
     * 评论文本
     */
    @XColumn(name = "comment_text",desc = "评论文本")
    private String commentText;

    /**
     * 上传时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @XColumn(name = "comment_time",desc = "评论时间")
    private Date commentTime;

    /**
     * 员工ID
     */
    @XColumn(name = "reply_emp_id",desc = "员工ID")
    private Long replyEmpId;

    /**
     *  员工姓名
     */
    @XColumn(name = "employee_name",desc = "被回复员工姓名")
    private String employeeName;

    /**
     *  头像码
     */
    @XColumn(name = "head_file_code",desc = "被回复头像码")
    private String headFileCode;

    /**
     *  员工姓名
     */
    @XColumn(name = "reply_employee_name",desc = "员工姓名")
    private String replyEmployeeName;

    /**
     *  头像码
     */
    @XColumn(name = "reply_head_file_code",desc = "头像码")
    private String replyHeadFileCode;
}
